package com.star.vrserver.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @author star
 * @date 2023-03-07 19:44
 * @Description 用户表的实体类
 */
@Data
@TableName("user")
@ApiModel(value = "user对象", description = "用户表")
public class User {
    //设置自动生成id：采用UUID
    @TableId(value = "id",type = IdType.ASSIGN_ID)
    private String id;

    private String name;
    private Integer age;
    private String tel;
    private String password;
    private String sex;
    @ApiModelProperty(value = "逻辑删除 1（true）已删除， 0（false）未删除")
    @TableLogic
    private Integer isDeleted;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;
}
